﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace carportal
{
    public partial class SearchCar : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           
        }

        protected void DropDownList7_Init(object sender, EventArgs e)
        {
            AddAny(sender);
        }

        private static void AddAny(object sender)
        {
            DropDownList dr = sender as DropDownList;
            ListItem li = new ListItem("Any", "-1");
            dr.Items.Add(li);
        }

        protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
        {
           
        }

        protected void SqlDataSourceSearchCar_Inserted(object sender, SqlDataSourceStatusEventArgs e)
        {           
            Session["SearchID"] = e.Command.Parameters["@SearchID"].Value.ToString();;
            DataList1.DataBind();
          //  FormView1.DefaultMode = FormViewMode.Edit;
        }

        
    }
}